﻿using UnityEngine;
using System.Collections;

public class CameraCredits : MonoBehaviour 
{
	public GUIStyle myGui;
	public Texture tex;
	public Texture background;
	public AudioClip soundfx;	

	
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnGUI () 
	{	
		GUI.DrawTexture(new Rect(0,0,Screen.width, Screen.height), background);	
		
		
	
		if(GUI.Button(new Rect((Screen.width/100)*(60),(Screen.height/100)*(80), 200, 200), tex, myGui)) 
		{
			audio.Play();
			Application.LoadLevel("Menu");
		}
		
		
	}
}
